package com.nchuoj.answer.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nchuoj.answer.pojo.AnswerQuestion;

/**
* @author lenovo
* @description 针对表【answer_question】的数据库操作Service
* @createDate 2022-12-24 18:22:14
*/
public interface AnswerQuestionService extends IService<AnswerQuestion> {
    /***
     * 创建一条答题记录
     * @param userId 用户id
     * @param questionId 题目id
     * @param questionSetId 题目集id
     * @param code 代码
     * @param sum 总分
     * @return 是否创建成功
     */
    AnswerQuestion record(Integer userId, Integer questionId,Integer questionSetId,String code,Integer sum);

}
